﻿<!--#include file="utf-8.asp"-->
<!--#include file="conn.asp"-->
<!--#include file="seeion.asp"--> 
<%

title=request.form("title")
etitle=request.form("etitle")
body=request.form("body")
ebody=request.form("ebody")

'response.write (title)
'response.end



SQL="Select * from about where id="&request("id")
set rs=server.createobject("adodb.recordset")
rs.open SQL,conn,2,3
if rs.eof and rs.bof then
	Response.Write "<script language='javascript'>alert('参数错误!');document.location.href('Manage_about.asp');</script>"
	Response.End()
end if

rs("title")=title
rs("etitle")=etitle
rs("body")=body
rs("ebody")=ebody
Sortid=rs("SortID")
rs.update 
response.write "<script>alert('修改公司简介成功！点击 [确定] 返回！');window.location.href='admin_about.asp?id="& Sortid &"';</script>" 

rs.close
set rs=nothing
conn.close
set rs=nothing

function panduan()
	if title=""  then 
		response.Write("<script language=javascript>alert('中文简介标题不能为空!');history.go(-1)</script>") 
		response.end 
	end if
	if body="" then 
		response.Write("<script language=javascript>alert('中文简介内容不能为空!');history.go(-1)</script>") 
		response.end 
	end if
end function

%>